package com.hhc.dto;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * <p>
 *   成绩数据传输对象
 * </p>
 * @author pc
 */
@Data
public class GradeDTO {

    @NotNull(message = "学生用户ID不能为空")
    private Long studentId;

    @NotNull(message = "课程ID不能为空")
    private Long courseId;

    @NotNull(message = "成绩分数不能为空")
    @DecimalMin(value = "0.0", message = "成绩分数不能为负数")
    private BigDecimal score;

    private Date examDate;

    private String remark;
}